package net.zigin.nhi.could.waste.data;

import net.zigin.nhi.could.waste.dto.*;
import org.testng.annotations.DataProvider;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * service层测试数据
 *
 * @author mgw1986
 * @version V1.0
 * @date 2018/12/4 11:53
 */
public class WasteBaseServiceDataProvider {

    @DataProvider(name = "wasteCollect")
    public Object[][] wasteCollect() {
        return new Object[][]{
                {
                        WasteCollectDto
                                .builder()
                                .rfid("")
                                .handUserQrCode("")
                                .departQrCode("")
                                .remark("")
                                .weight(1F)
                                .wasteClassifyCode("")
                                .wasteClassifyName("")
                                .build()
                }
        };
    }

    @DataProvider(name = "putSingleInStorage")
    public Object[][] putSingleInStorage() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .wasteBaseId("")
                                .weight(1F)
                                .remark("")
                                .build()
                }
        };
    }

    @DataProvider(name = "putMultipleInStorage")
    public Object[][] putMultipleInStorage() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .wasteBaseIds(Arrays.asList("", ""))
                                .weight(1F)
                                .remark("")
                                .build()
                }
        };
    }

    @DataProvider(name = "putBoxInStorage")
    public Object[][] putBoxInStorage() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .wasteBoxId("")
                                .weight(1F)
                                .remark("")
                                .build()
                }
        };
    }

    @DataProvider(name = "getMultipleInStorageInfo")
    public Object[][] getMultipleInStorageInfo() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .collectUserQrCode("")
                                .wasteOrCodes(Arrays.asList("", ""))
                                .build()
                }
        };
    }

    @DataProvider(name = "getBoxInStorageInfo")
    public Object[][] getBoxInStorageInfo() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .collectUserQrCode("")
                                .wasteBoxId("")
                                .build()
                }
        };
    }

    @DataProvider(name = "bindBagWithBox")
    public Object[][] bindBagWithBox() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .wasteBoxQrCode("")
                                .wasteBaseIds(Arrays.asList("", ""))
                                .build()
                }
        };
    }

    @DataProvider(name = "removeBindBagWithBox")
    public Object[][] removeBindBagWithBox() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .wasteBoxQrCode("")
                                .wasteBaseIds(Arrays.asList("", ""))
                                .build()
                }
        };
    }

    @DataProvider(name = "getPendingInStorageList")
    public Object[][] getPendingInStorageList() {
        return new Object[][]{
                {
                        WasteInPutStorageDto
                                .builder()
                                .collectUserQrCode("")
                                .build()
                }
        };
    }

    @DataProvider(name = "getPrintMessage")
    public Object[][] getPrintMessage() {
        return new Object[][]{
                {
                        WasteOutPutStorageDto
                                .builder()
                                .wasteBaseIds(Arrays.asList("",""))
                                .wasteBoxRecordId("")
                                .build()
                }
        };
    }

    @DataProvider(name = "printMessage")
    public Object[][] printMessage() {
        return new Object[][]{
                {
                        WasteOutPutStorageDto
                                .builder()
                                .ckCode("")
                                .revicerId("")
                                .weight(1F)
                                .wasteBaseIds(Arrays.asList("",""))
                                .wasteClassifyCode("")
                                .remark("")
                                .wasteBaseDtos(Arrays.asList(WasteBaseDto.builder().id("").weight(1F).build()))
                                .wasteBoxDto(WasteBoxDto.builder().id("").wasteBoxRecordId("").wasteClassifyCode("").weight(1F).build())
                                .build()
                }
        };
    }

    @DataProvider(name = "checkWarnWeight")
    public Object[][] checkWarnWeight() {
        return new Object[][]{
                {
                        WasteBaseDto
                                .builder()
                                .id("")
                                .ids(Arrays.asList("",""))
                                .wasteBoxId("")
                                .wasteClassifyCode("")
                                .build()
                }
        };
    }


}
